#version 300 es
precision mediump float;

uniform highp mat4 uYUV2RGB;
uniform sampler2D uTexY;
uniform sampler2D uTexU;
uniform sampler2D uTexV;

in vec2 fTex;

layout(location = 0) out lowp vec4 outColor;

void main() {
	outColor = vec4(texture(uTexY, fTex).r, texture(uTexU, fTex).r, texture(uTexV, fTex).r, 1) * uYUV2RGB;
}
